//
//  H5ManagerServices.m
//  Pods
//
//  Created by Admin on 16/12/29.
//
//

#import "H5ManagerServices.h"
#import "H5ViewController.h"

@interface H5ManagerServices()

@property(strong, nonatomic) H5ViewController *h5View;
@end

@implementation H5ManagerServices


- (UIViewController *)getH5ViewControllerWithURL:(NSString*)url andTitle:(NSString*)title{
    
    static H5ViewController* h5ViewController = nil;
 
    h5ViewController = [H5ViewController shareViewController];
    self.h5View = h5ViewController;

    h5ViewController.h5Title = title;
    h5ViewController.h5RequestURL = url;
    return h5ViewController;
}

- (void)setH5TitleFont:(UIFont*)font andColor:(UIColor*)color{
    
    if (font) {
        self.h5View.titleFont = font;
    }
    if (color){
        self.h5View.titleColor = color;
    }
    
}
@end
